<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>hello world</title>
    <script src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>hello world</h1>
    <hr/>
    <div id="app">
        {{message}}
    </div>

    <template id='temp1'>
        <h1 style="color:red">我是html标签模板</h1>
    </template>

    <script type="x-template" id="temp2">
            <h1 style="color:red">我是script标签模板</h1>
    </script>

    <script>
        var app = new Vue({
            el: '#app',
            data: {
                message: 'hello world!12121'
            },
            // template: `
            //     <h1 style="color:red">我是选项模版</h1>
            // `
            template: '#temp2'
        });
    </script>

</body>
</html>